/**
 * 14/02/2014
 * 
 * PayRollBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.PayRollDAOInterface;
import org.cuatrovientos.erp.model.PayRoll;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for PayRoll related management
 * @author Javier Tejedor
 */
public class PayRollBO implements PayRollBOInterface {

	@Autowired
	private PayRollDAOInterface payrollDAO;

	@Override
	public PayRoll selectById(int id) {
		return payrollDAO.selectById(id);
	}

	@Override
	public List<PayRoll> selectAll() {
		return payrollDAO.selectAll();
	}

	@Override
	public List<PayRoll> search(String description) {
		return payrollDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		payrollDAO.deleteById(id);
	}

	@Override
	public void insert(PayRoll payroll) {
		payrollDAO.insert(payroll);
	}

	@Override
	public void update(PayRoll payroll) {
		payrollDAO.update(payroll);
	}
	
}
